<style scoped>
  .sellform >>> .weui-form-preview__hd .weui-form-preview__value {
    font-size: 1.2em;
    padding-right: 20px;
  }
  .sellform {
    background: #e3e3e3;
  }
  .page-infinite-wrapper {
    background: #e3e3e3;
  }
  .weui-form-preview {
    margin: 5px;
    border-radius: 5px;
  }

  .rj-cell-child {
    display: inline-block;
    font-size: 0;
    padding: 5px 15px;
    text-align: left;
  }
  .rj-cell-child.max span{
    font-size: 16px;
    padding-right: 20px;
  }
  .rj-cell-child.minpad{
    padding-right: 10px !important;
  }
  .rj-cell-child label {
    color: #333;
    font-size: 13px;
  }
  .rj-cell-child span {
    padding-left: 20px;
    font-size: 13px;
    color: #333;
  }
  .rj-cell-child .tip {
    font-size: 16px;
    color: #333;
  }
  .rj-cell-child i {
    font-size: 18px;
    font-style: normal;
    color: #333;
  }
  .rj-cell-child-tit {
    background: #eee;
    font-size: 14px;
    padding: 5px 15px;
    border-bottom: 1px solid #ddd;
  }
  .weui-form-preview__ft .weui-form-preview {
    background: #f5f5ef;
  }
  .weui-form-preview__ft {
    line-height: normal;
  }



  .weui_tab_bd {
    background: #eee;
  }
  .weui-form-preview {
    background-color: #fff;
    margin: 5px;
    border-radius: 5px;
  }
  .weui-form-preview__hd label, .weui-form-preview__hd em {
    font-size: .9em !important;
  }
  .weui_navbar {
    white-space: nowrap;
    overflow: scroll;
    display: block !important;
    border-bottom: 1px solid #BCBAB6;
    font-size: 0;
    /*background: #fafafa;*/
  }
  .weui_navbar_item {
    font-size: 14px;
    display: inline-block;
    width: 20%;
    padding: 13px 0;
    background: #fff;
    position: relative;
    color: #888;
  }
  .weui_navbar:after {
    border-bottom: 0;
  }
  .weui_navbar_item:after {
    content: " ";
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    border-right: 1px solid #cccccc;
    color: #cccccc;
    -webkit-transform-origin: 100% 0;
    transform-origin: 100% 0;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    font-size: 10px;
  }
  .weui-panel__bd {
    text-align: left;
  }
  .hoverbar {
    background: #03A9F4;
    position: fixed;
    bottom: 100px;
    right: 20px;
    height: 50px;
    line-height: 50px;
    width: 50px;
    z-index: 100;
    font-size: 30px;
    border-radius: 50%;
    box-shadow: 0px 2px 3px rgba(100, 100, 100, 0.5);
    color: #fff;
  }
  .flowbtn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1000;
  }
  .rj-label {
    display: inline-block;
  }
  .rj-value {
    display: inline-block;
    padding-left: 5px;
  }

  .weui-form-preview {
    font-size: 14px;
    position: relative;
  }
  .weui-form-preview__btn {
    line-height: 50px;
  }
  .btarr {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fcfcfc;
    box-shadow: 0px 2px 4px rgba(100, 100, 100, 0.5);
    color: #333;
    text-align: center;
    font-size: 0;
    border-radius: 0 0 10px 10px;
  }
  .rj-btmarr {
    transform: rotate(90deg);
    font-size: 30px;
    color: #0bb20c;
    margin: 0 auto;
    margin-left: 3px;
    height: 46px;
  }
  .rj-btmarr2 {
    transform: rotate(-90deg);
    font-size: 30px;
    color: #0bb20c;
    margin: 0 auto;
    margin-right: 3px;
  }
  .short .rj-cell-child span {
    padding-left: 5px;
  }
</style>
<template>
  <div>
    <div v-show="showFull" class="weui-form-preview">
      <div class="flowbtn" @click="openLogs(item.guid, item.storermguid, item.depguid)"><img src="@/assets/icon-history.png" style="width: 16px" /></div>
      <!--              <div class="flowbtn1" @click="NextOeder(item.guid)"><img src="@/assets/Again.png" style="width: 16px" /></div>-->
      <div class="weui-form-preview__hd" @click="viewItem(item.guid)">
        <label class="weui-form-preview__label">订单编号</label>
        <em class="weui-form-preview__value">{{item.sellcode}}</em>
      </div>
      <div class="weui-form-preview__bd">
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">申请人</label>
          <span class="weui-form-preview__value">{{item.applyname}}[{{item.depname}}]</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">客户</label>
          <span class="weui-form-preview__value">{{item.customername}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">付款方式</label>
          <span class="weui-form-preview__value">{{item.paytypename}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">订单类型</label>
          <span class="weui-form-preview__value">{{item.flagname}}{{mainCode(item.partitionflag, item.parentcode)}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">发货工厂</label>
          <span class="weui-form-preview__value">{{item.storeroomname}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.settletype == 1">
          <label class="weui-form-preview__label">订单件数</label>
          <span class="weui-form-preview__value">{{item.orderpack}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.settletype == 1 && item.handselcount != ''">
          <label class="weui-form-preview__label">赠送件数</label>
          <span class="weui-form-preview__value">{{item.handselcount}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">订单重量</label>
          <span class="weui-form-preview__value">{{item.orderweight}} 吨</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.settletype == 1 && item.handselweight != ''">
          <label class="weui-form-preview__label">赠送重量</label>
          <span class="weui-form-preview__value">{{item.handselweight}} 吨</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">货品类型</label>
          <span class="weui-form-preview__value">{{item.quitSRTypeName}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">配送方式</label>
          <span class="weui-form-preview__value">{{item.deliverytypename}}</span>
        </div>
        <!--                <div class="weui-form-preview__item" v-if="item.transTypeName != ''">-->
        <!--                  <label class="weui-form-preview__label">运输方式</label>-->
        <!--                  <span class="weui-form-preview__value">{{item.transTypeName}}</span>-->
        <!--                </div>-->
        <div class="weui-form-preview__item" v-if="item.carcode != ''">
          <label class="weui-form-preview__label">车牌号</label>
          <span class="weui-form-preview__value">{{item.carcode}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.drivername != ''">
          <label class="weui-form-preview__label">司机姓名</label>
          <span class="weui-form-preview__value">{{item.drivername}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.driverphone != ''">
          <label class="weui-form-preview__label">司机电话</label>
          <span class="weui-form-preview__value">{{item.driverphone}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.deliport != ''">
          <label class="weui-form-preview__label">发货港口</label>
          <span class="weui-form-preview__value">{{item.deliport}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.arriport != ''">
          <label class="weui-form-preview__label">到货港口</label>
          <span class="weui-form-preview__value">{{item.arriport}}</span>
        </div>
        <div class="weui-form-preview__item" v-if="item.containerno != ''">
          <label class="weui-form-preview__label">货柜号</label>
          <span class="weui-form-preview__value">{{item.containerno}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">要求发货日期</label>
          <span class="weui-form-preview__value">{{item.senddate}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">要求到货日期</label>
          <span class="weui-form-preview__value">{{item.arrivedate}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">状态</label>
          <span class="weui-form-preview__value">{{item.statusname}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">备注</label>
          <span class="weui-form-preview__value" style="color: #000;">{{item.remarks}}</span>
        </div>
        <div class="weui-form-preview__item">
          <label class="weui-form-preview__label">创建时间</label>
          <span class="weui-form-preview__value">{{item.createtime}}</span>
        </div>
      </div>
      <div class="weui-form-preview__ft olist">
        <!--                <div class="weui-panel__hd"></div>-->
        <div class="weui-panel__bd">
          <div class="weui-form-preview" v-for="(product, index) in item.spitems.concat(item.items)" :key="product.guid">
            <div class="rj-cell-child-tit">产品明细 {{index+1}}</div>
            <div class="rj-cell-child">
              <label>品&nbsp;&nbsp;&nbsp;种：</label><span>{{product.productname}}</span> <span>{{product.spname}} </span>
            </div>
            <div class="rj-cell-child" v-if="item.settletype == 1">
              <label>订单件数：</label><span>{{product.orderpack}} {{product.unit}}</span>
            </div>
            <div class="rj-cell-child" v-if="item.settletype == 1 && product.handselcount != ''">
              <label>赠送件数：</label><span>{{product.handselcount}} {{product.unit}}</span>
            </div>
            <div class="rj-cell-child" v-if="item.settletype == 2">
              <label>订单数量：</label><span>{{product.weight}} {{product.unit}}</span>
            </div>
<!--            <div class="rj-cell-child" v-if="item.settletype == 2 && checkNull(product.handselweight)">-->
<!--              <label>赠送数量：</label><span>{{product.handselweight}} {{product.unit}}</span>-->
<!--            </div>-->
            <!--                    <div class="rj-cell-child" v-show="saladmperms || edpriceperms || setlperms || backperms || userid == item.operatorid">-->
            <div class="rj-cell-child" v-show="showPrice">>
              <label>单&nbsp;&nbsp;&nbsp;价：</label><span>{{product.price}} {{packUnit(product.unit, item.currency)}}</span><span></span>
            </div>
            <div class="rj-cell-child">
              <label>备&nbsp;&nbsp;&nbsp;注：</label><span>{{product.remark}}</span>
            </div>
          </div>
        </div>
      </div>
      <div class="weui-form-preview__ft">
        <template v-for="(node, nodeIndex) in item.nodes">
          <a class="weui-form-preview__btn weui-form-preview__btn_primary" :key="node.guid" href="javascript:" v-if="pstat == '00' && filterPerm(node.permission, item.storermguid, item.depguid, item.operatorid, node.operate, item.deliverytype, item.partitionflag, node.name, node.nodetype, item.transferguid)" @click="doAct(node.operate, item.guid, node.guid, node.name, node.annex, node.refuseflag, item.flag, item.settletype, item.orderpack, index)" >{{node.name}}</a>
          <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" v-if="pstat == '45,50,55' && filterPerm(node.permission, item.storermguid, item.depguid, item.operatorid, node.operate, item.deliverytype, item.partitionflag, node.name, node.nodetype, item.transferguid)" @click="doAct(node.operate, item.guid, node.guid, node.name, node.annex, node.refuseflag, item.flag, item.settletype, item.orderpack, index)" >{{node.name}}</a>
        </template>
      </div>
      <div class="btarr" @click="showFull = false">
        <p class="rj-btmarr2">&raquo;</p>
      </div>
<!--      <div class="weui-form-preview__ft" style="display: block;" @click="showFull = false">-->
<!--        <div style="border-top: 0.5px solid #eee;text-align: center;width: 100%;">-->
<!--          <p class="rj-btmarr2">	&raquo;</p>-->
<!--        </div>-->
<!--      </div>-->
    </div>
    <div v-show="!showFull" class="weui-form-preview short" style="font-size: 14px;color: #333;">
      <div class="flowbtn" @click="openLogs(item.guid, item.storermguid, item.depguid)"><img src="@/assets/icon-history.png" style="width: 16px" /></div>
      <!--              <div class="flowbtn1" @click="NextOeder(item.guid)"><img src="@/assets/Again.png" style="width: 16px" /></div>-->
<!--      <div class="weui-form-preview__hd" @click="viewItem(item.guid)" style="line-height: normal;">-->
<!--        <label class="weui-form-preview__label">订单编号</label>-->
<!--        <em class="weui-form-preview__value">{{item.sellcode}}</em>-->
<!--      </div>-->
      <div class="weui-form-preview__bd" @click="viewItem(item.guid)" style="text-align: left;color: #333;">
        <div>
          <label class="rj-label">订单编号:</label>
          <div class="rj-value">{{item.sellcode}}</div>
          <label class="rj-label" style="margin-left: 5px;">状态:</label>
          <div class="rj-value">{{item.statusname}}</div>
        </div>
        <div>
          <label class="rj-label">客户:</label>
          <div class="rj-value">{{item.customername}}</div>
          <label class="rj-label" style="margin-left: 5px;">申请时间:</label>
          <div class="rj-value">{{item.createtime.substr(0, 10)}}</div>
        </div>
        <div>
          <label class="rj-label">申请人:</label>
          <div class="rj-value">{{item.applyname}}[{{item.depname}}]</div>
        </div>
      </div>
      <div class="weui-form-preview__ft olist">
        <!--                <div class="weui-panel__hd"></div>-->
        <div class="weui-panel__bd">
          <div class="weui-form-preview" style="font-size: 14px;" v-for="(product, index) in item.spitems.concat(item.items)" v-if="index < 2" :key="product.guid">
<!--            <div class="rj-cell-child-tit">产品明细 {{index+1}}</div>-->
            <div class="rj-cell-child">
              <label>产品：</label><span>{{product.productname}}</span> <span>{{product.spname}} </span>
            </div>
            <div class="rj-cell-child" v-if="item.settletype == 1">
              <label>订单件数：</label><span>{{product.orderpack}} {{product.unit}}</span>
            </div>
<!--            <div class="rj-cell-child" v-if="item.settletype == 1 && product.handselcount != ''">-->
<!--              <label>赠送件数：</label><span>{{product.handselcount}} {{product.unit}}</span>-->
<!--            </div>-->
            <div class="rj-cell-child" v-if="item.settletype == 2">
              <label>订单数量：</label><span>{{product.weight}} {{product.unit}}</span>
            </div>
<!--            <div class="rj-cell-child" v-if="item.settletype == 2 && checkNull(product.handselweight)">-->
<!--              <label>赠送数量：</label><span>{{product.handselweight}} {{product.unit}}</span>-->
<!--            </div>-->
            <!--                    <div class="rj-cell-child" v-show="saladmperms || edpriceperms || setlperms || backperms || userid == item.operatorid">-->
            <div class="rj-cell-child" v-show="showPrice">>
              <label>单价：</label><span>{{product.price}} {{packUnit(product.unit, item.currency)}}</span><span></span>
            </div>
<!--            <div class="rj-cell-child">-->
<!--              <label>备&nbsp;&nbsp;&nbsp;注：</label><span>{{product.remark}}</span>-->
<!--            </div>-->
          </div>
        </div>
      </div>
      <div class="weui-form-preview__ft">
        <template v-for="(node, nodeIndex) in item.nodes">
          <a class="weui-form-preview__btn weui-form-preview__btn_primary" :key="node.guid" href="javascript:" v-if="pstat == '00' && filterPerm(node.permission, item.storermguid, item.depguid, item.operatorid, node.operate, item.deliverytype, item.partitionflag, node.name, node.nodetype, item.transferguid)" @click="doAct(node.operate, item.guid, node.guid, node.name, node.annex, node.refuseflag, item.flag, item.settletype, item.orderpack, index)" >{{node.name}}</a>
          <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="javascript:" v-if="pstat == '45,50,55' && filterPerm(node.permission, item.storermguid, item.depguid, item.operatorid, node.operate, item.deliverytype, item.partitionflag, node.name, node.nodetype, item.transferguid)" @click="doAct(node.operate, item.guid, node.guid, node.name, node.annex, node.refuseflag, item.flag, item.settletype, item.orderpack, index)" >{{node.name}}</a>
        </template>
      </div>
      <div class="btarr" @click="showFull = true">
        <p class="rj-btmarr">&raquo;</p>
      </div>
<!--      <div class="weui-form-preview__ft" style="line-height: 30px;">-->
<!--        <p class="rj-btmarr">	&raquo;</p>-->
<!--      </div>-->
    </div>
  </div>
</template>

<script>
export default {
  name: 'SellformItem',
  data () {
    return {
      OUTCOUNT: 2000,
      showFull: false,
      userid: localStorage.userid
    }
  },
  props: [
    'data',
    'item',
    'index',
    'permissions',
    'showPrice',
    'pstat'
  ],
  computed: {
    payUnit: function () {
      return this.settletype == 1 ? '元/件' : '元/吨';
    }
  },
  created() {
    this.getBigorderParam();
  },
  mounted() {
  },
  watch: {

  },
  methods: {
    getBigorderParam: function() {
      this.axios({
        method: 'get',
        url: '/system/Data!getSysParams.action',
        params: {filename: 'saleparams.properties', paramname: 'OUTCOUNT'}
      }).then((response) => {
        if (response.data.code == 1) {
          let data = response.data;
          this.OUTCOUNT = parseInt(data.msg);
        }
      })
    },
    mainCode: function(flag, code) {
      if (flag == 3 || flag == 4) {
        return '[' + code + ']';
      }
    },
    //在下一单
    NextOeder(row) {
      this.$router.push({
        path:'/sellform/next',
        query:{
          sellformid:row
        }
      })
    },
    packUnit: function(unit, currency) {
      return unit != undefined && unit != '' ? currency == 2 ? '美元/' + unit : '元/' + unit : '';
    },
    openLogs: function(id, roomid, departid) {
      this.$router.push({name: 'SalesOperationLogs3', query: {orderid: id, srguid: roomid, departid: departid}});
    },
    filterPerm: function(perm, roomid, departid, operatorid, nodename, delivertype, partitionflag, nodetitle = '', nodetype, transferguid) {
      let status = false;
      if (nodename == 'dispatch' && partitionflag == 2) {
        //分拆主订单不允许调度
        status = false;
      } else if ((nodename == 'partition' || nodename == 'partition2') && (partitionflag == 3 || partitionflag == 4)) {
        //分拆子订单不允许再分拆
        status = false;
      } else if (nodetitle == '完成' && partitionflag != 2) {
        //分拆主订单不允许出库后再分拆
        status = false;
      } else if (nodename == 'approval2' && nodetype == 66 && partitionflag != 3 && partitionflag != 4) {
        //分拆主订单不允许出库后再分拆
        status = false;
      } else {
        if (perm == 0) {
          status = (this.userid == operatorid || this.userid == transferguid);
        } else {
          let permissions = this.permissions;
          if (permissions.length == 0) return;
          for (let i=0; i<permissions.length; i++) {
            if (perm == permissions[i].permission) {
              if (permissions[i].permss.scopetype == 7) {
                if (permissions[i].srguid == roomid) {
                  status = true;
                } else {
                  status = status == true ? true :false;
                }
              } else if (permissions[i].permss.scopetype == 2 || permissions[i].permss.scopetype == 6) {
                if (permissions[i].departid == departid) {
                  status = true;
                } else {
                  status = status == true ? true :false;
                }
              } else if (permissions[i].permss.scopetype == 3) {
                if (permissions[i].srguid == roomid && permissions[i].departid == departid) {
                  status = true;
                } else {
                  status = status == true ? true :false;
                }
              } else if (permissions[i].permss.scopetype == 4) {
                status = true;
              } else {
                status = true;
              }
              //return status;

            }
          }

        }
      }

      return status;
    },
    delSellform: function(guid, nodeid, status) {
      let that = this;
      var object = Object;
      $.confirm("确定要作废该订单？", function() {
        that.axios({
          method: 'post',
          url: '/sales/Sellform!zf.action',
          params: {guid: guid, nodeid: nodeid, status: status}
        }).then((response) => {
          if (response.data.msg == 'ok') {
            that.$refs[guid][0].remove();
            that.toastSuccess('作废成功！');
          } else if (response.data.msg == 'not login') {
            that.toastText('请重新登录！');
          } else if (response != undefined && response.data != undefined && response.data.msg == 'sessionTimeOut') {
            //不不设置提示
          } else {
            that.toastError("系统错误");
          }
        })
      }, function() {
        //点击取消后的回调函数
      });
    },
    viewItem: function (id) {
      $('#searchInput').val('');
      this.$router.push({name: 'ViewSellform', query: {id: id}});
    },
    toOrderSure: function (guid, nodeid, status){
      let that = this;
      var promptconf = {
        title: '到货确认',
        text: '请输入到货确认信息!',
        type: "textArea",
        empty: true, // 是否允许为空
        onOK: function (input) {
          $.ajax({
            url: '/sales/Sellform!sendCar.action',
            method: "POST",
            data: {"guid": guid,"description":input,"sellType":"orderSure", nodeid: nodeid, status:status},
            dataType: 'json',
            async : true,
            error:function(data){
              that.toastError('系统出现异常!');
            },
            success:function(data){
              if(data.info == 'ok'){
                that.toastSuccess('操作成功!');
              }else{
                that.toastError('操作失败!');
              }
              that.getPageData();
            }
          });
        },
        onCancel: function () {
          //点击取消
        }
      }
      $.prompt(promptconf);
      $("#weui-prompt-input").remove(); //去除原始输入框
      $(".weui-dialog__bd").append('<textarea  rows="8" style="height:110px;" class="weui_input weui-prompt-input" id="weui-prompt-input" value=""></textarea>');
    },
    sellAssign:function (guid, nodeid, status){
      let that = this;
      var quitSRType = 1;
      var promptconf = {
        title: '出库派单',
        type: "textArea",
        empty: true, // 是否允许为空
        onOK: function (input) {
          $.ajax({
            url: '/sales/Sellform!sendCar.action',
            method: "POST",
            data: {"guid": guid,"description":input,"sellType":"sellAssign", nodeid: nodeid, status:status},
            dataType: 'json',
            async : true,
            error:function(data){
              that.toastError('系统出现异常!');
            },
            success:function(data){
              if(data.info == 'ok'){
                that.toastSuccess('操作成功!');
              }else{
                that.toastError('操作失败!');
              }
              that.getPageData();
            }
          });
        },
        onCancel: function () {
          //点击取消
        }
      }
      $.prompt(promptconf);
      $("#weui-prompt-input").remove(); //去除原始输入框
      $(".weui-dialog__bd").append('<textarea  rows="8" style="height:110px;" class="weui_input weui-prompt-input" id="weui-prompt-input" value=""></textarea>');
    },
    doAct: function (name, guid, nodeid, actname, annex, refuseflag, flag, settletype, orderpack, nodeIndex) {
      let acts = this.$store.state.acts;

      let nodetype15Nodeid = this.data[nodeIndex].nodes.filter(item => {
        return item.nodetype == 15;
      })[0] != undefined ? this.data[nodeIndex].nodes.filter(item => {
        return item.nodetype == 15;
      })[0].guid : '';

      if (name == 'qacheck') {
        this.toQaform(guid, nodeid, annex);
      } else if (name == 'delete') {
        this.delSellform(guid, nodeid, status);
      } else if (name == 'sendcar') {
        if (flag == 4) {
          location.href = '/vuecode/#/sellform/sendCar2?guid=' + guid + '&nodeid=' + nodeid + '&status=' + status + '&refuseflag=' + refuseflag;
        } else {
          location.href = '/vuecode/#/sellform/sendCar?guid=' + guid + '&nodeid=' + nodeid + '&status=' + status + '&refuseflag=' + refuseflag;
        }
      } else if (name == 'arrivalConfirm') {
        this.toOrderSure(guid, nodeid, status);
      } else if (name == 'salesOut' && orderpack < this.OUTCOUNT && settletype == 1) {
        this.$router.push({name: 'OutStoreRoom2', query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag}});
      } else if (name == 'settleConfirm') {
        this.$router.push({name: acts[name], query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag, backStrNodeid: nodetype15Nodeid}});
      } else if (name == 'partition') {
        this.$router.push({name: acts[name], query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag, backStrNodeid: nodetype15Nodeid, partitiontype: 1}});
      } else if (name == 'partition2') {
        this.$router.push({name: acts[name], query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag, backStrNodeid: nodetype15Nodeid, partitiontype: 2}});
      } else if (name == 'settleConfirm') {
        this.$router.push({name: acts[name], query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag, backStrNodeid: nodetype15Nodeid}});
      } else {
        this.$router.push({name: acts[name], query: {guid:guid, status: this.pstat, conditionSR: this.conditionSR, nodeid: nodeid, title: actname, annex: annex, refuseflag: refuseflag}});
      }
    },
    toQaform: function (guid, nodeid, annex) {
      window.location.href = '/trace/Qaform!index.action?orderguid='+guid+'&orderType=4'+'&nodeid='+nodeid+'&annex='+annex;
    },
  }
}
</script>
